<?php
	include 'db_connection.php';
	$sql="select * from photos where photoname";
	$exe=mysql_query($sql);
?>
<html>
<body>
<table>
	<?php 
	while($row=mysql_fetch_array($exe))
	{
	?>
	<tr>
		<td><img src="photos/<?php echo $row['photoname']?>" width="100px" height="100px"></td>
	</tr>
	<?php
	}
	?>
</table>
</body>
</html>